package com.company.calendar.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * 工作日规则实体类
 * 
 * @author System
 * @since 1.0.0
 */
@TableName("workday_rules")
@Data
public class WorkdayRule {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("config_id")
    private Long configId;
    
    @TableField("day_of_week")
    private Integer dayOfWeek;
    
    @TableField("is_workday")
    private Boolean isWorkday;
    
    @TableField("work_start_time")
    private LocalTime workStartTime;
    
    @TableField("work_end_time")
    private LocalTime workEndTime;
    
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;
}


